package com.project.bean;

/**
 * @Author(王思翰)
 * @Description(类的描述)用户实体类
 * @Date(创建时间) 2021/7/31 13:40
 */
public class UserBean {
    /**
     * 用户id
     */
    private int id;
    /**
     * 用户名
     */
    private String name;
    /**
     * 密码
     */
    private String pwd;
    /**
     * 权限
     */
    private String power;

    public UserBean() {
    }

    public UserBean(int id) {
        this.id = id;
    }

    public UserBean(String name, String pwd, String power) {
        this.name = name;
        this.pwd = pwd;
        this.power = power;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", power='" + power + '\'' +
                "}\n";
    }
}
